package org.com.andy.constant;

/**
 * 权限相关通用常量
 * 
 * @author taf
 */
public class SecurityConstants
{
    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";

    /**
     * 请求来源
     */
    public static final String FROM_SOURCE = "from-source";

    /**
     * 内部请求
     */
    public static final String INNER = "inner";

    /**
     * 用户标识
     */
    public static final String USER_KEY = "user_key";

    /**
     * 登录用户
     */
    public static final String LOGIN_USER = "login_user";

    /**
     * 角色权限
     */
    public static final String ROLE_PERMISSION = "role_permission";

    /** 文件存储类型请求头*/
    public static final String HEADER_STORAGE_TYPE = "storage-type";
    /** 文件存储类型: 1-本地*/
    public static final String STORAGE_TYPE_LOCAL = "1";
    /** 文件存储类型: 2-CMP*/
    public static final String STORAGE_TYPE_CMP = "2";
    /** 文件存储类型: 3-FastDFS*/
    public static final String STORAGE_TYPE_FAST_DFS = "3";
    /** 文件存储类型: 4-minio*/
    public static final String STORAGE_TYPE_MINIO = "4";
}
